# -*- coding: utf-8 -*-
from openerp import models, fields, api

class gmq_bs_seat(models.Model):
    '''
    图书馆座位信息
    '''
    _name = 'gmq.bs.seat'
    _rec_name = 'zwh'
    _description = u'图书馆座位信息'

    room = fields.Many2one('gmq.bs.seat.room',u'教室')
    isactivity = fields.Boolean(u'是否开放',default = True)
    floor = fields.Many2one('gmq.bs.seat.floor',u'楼层')
    dylibrary = fields.Many2one('gmq.bs.seat.library', u'图书馆')
    zybhh = fields.Char(u'行')
    zybhl = fields.Char(u'列')
    zwh = fields.Char(u'座位号')
    state = fields.Selection([
        (u'True', u'有人'),
        (u'False', u'空闲'),
        (u'我的选择', u'我的选择'),
    ], u'座位状态',default = u'False')
    seat_state = fields.Boolean(default=True,string=u'座位状态')
    yyd_ref = fields.One2many('gmq.bs.yyd','booking_seat',u'预约记录')

